import state from './state'
export default {
  totalMoney(state) {
    let money = 0;
    for (let item in state.arr) {
      money += parseInt(state.arr[item].price.split('￥')[1]) * state.arr[item].num
    }
    return money;
  }
}
